import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-11-16
 * Time: 14:45
 */
class Student {
    public String name;
    public int age;
    public Student(String name,int age) {
        this.name = name;
        this.age = age;
    }
}
public class Test2 {
    public static int count = 10;
    public static void main(String[] args) {
        String s = "library";
        char[] chars = s.toCharArray();
        for(char ch : chars) {
            System.out.print(ch + " ");
        }
        System.out.println();
        String s2 = new String(chars);
        System.out.println(s2);
    }
    public static void main2(String[] args) {
        String s1 = String.valueOf(123);
        String s2 = String.valueOf(12.23);
        String s3 = String.valueOf(true);
        String s4 = String.valueOf(new Student("hanmeimei",18));
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);//Student@41629346
    }
    public static void main1(String[] args) {
        Test2 test1 = new Test2();
        test1.count++;
        Test2 test2 = new Test2();
        test2.count++;
        Test2 test3 = new Test2();
        test3.count++;
        Test2.count++;
        System.out.println(count);
    }
}
